package com.aizhixin.lab.project.course.repository;

import com.aizhixin.lab.project.course.entity.ExerciseStuCode;
import com.aizhixin.lab.task.entity.TaskStuCode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ExerciseStuCodeRepository extends JpaRepository<ExerciseStuCode,String> {
    ExerciseStuCode findById(String id);

    List<ExerciseStuCode> findByExercisesQuestionIdAndStuIdOrderBySubmitTimeDesc(String exercisesQuestionId, String stuId);
    List<ExerciseStuCode> findByExercisesQuestionIdAndStuIdOrderBySubmitTime(String exercisesQuestionId,String stuId);
}
